package com.ikun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ikun.entity.Salaries;

public interface SalariesDao {
    int addSalary(Salaries salaries);

    List<Salaries> calculateSalaryForManger(@Param("formattedYearMonth") String formattedYearMonth,
        @Param("manageId") String manageId);

    List<Salaries> calculateSalaryForMangerByName(@Param("manageName") String manageName);

    Salaries findSalaryByStaffIdAndPayMonth(@Param("staffId") Integer staffId, @Param("payMonth") String payMonth);

    int deleteSalary(@Param("staffId") Integer staffId, @Param("payMonth") String payMonth);

}
